<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>3_Vue中的数据代理</title>
    <script src="../js/vue.js"></script>
</head>
<body>

    <div id="root">
        姓名：{{name}}
        <br>
        地址：{{addr}}
    </div>
    <script>
        person = {name:'小鱼',addr:'我的家在东北'}
        person1 = {name:'daxiao',addr:'陕西'}
        const vm = new Vue({
            el:'#root',
            data(){
                return person
            }
        })
    </script>
    
</body>
</html>